//
//  MyScrollView.h
//  Boom
//
//  Created by 云鹏 赵 on 15/3/5.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Raido1.h"
#import "Raido1Button.h"
#import "Raido2.h"
#import "PlayerViewController.h"

@protocol buttonDelegate <NSObject>

- (void)pushToConllectionViewController:(NSInteger)tag;

@end

@protocol imageViewDelegate <NSObject>

- (void)imageViewTap:(NSInteger)tag;

@end

@interface MyScrollView : UIScrollView<UIScrollViewDelegate>


@property (nonatomic, retain) UIScrollView *myScrollView; // 横排scrollview
// 创建横排scrollview上的imageview
@property (nonatomic, retain) UIImageView *imageView1;
@property (nonatomic, retain) UIImageView *imageView2;
@property (nonatomic, retain) UIImageView *imageView3;
@property (nonatomic, retain) UIImageView *imageView4;
@property (nonatomic, retain) UIImageView *imageView5;
// 横排scroll图片数组
@property (nonatomic, retain) NSMutableArray *picArray;
@property (nonatomic, retain) UIPageControl *myPageControll; // 创建pagecontroll属性
@property (nonatomic, assign) id<buttonDelegate> myDelegate; // button协议代理人
@property (nonatomic, assign) id<imageViewDelegate> imageViewDelegate; // scrollview 上的imageView 的 tap时间协议代理
@property (nonatomic, retain) NSMutableArray *array; // 用于接收传过来的scrollview数组数据
@property (nonatomic, retain) NSMutableArray *arrayButton; // 用于接收传过来的button数组数据
@property (nonatomic, retain) NSMutableDictionary *dictionary; // 用于接收传过来的字典数据
// 添加button属性
@property (nonatomic, retain) UIButton *button1; // 最新资讯button
@property (nonatomic, retain) UIButton *button2; // 电台button
@property (nonatomic, retain) UIButton *button3; // 音乐button
@property (nonatomic, retain) UIButton *button4; // 情感生活button
// 创建24个推荐imageview 和 对应的lable
@property (nonatomic, retain) UIImageView *ZXImageView1;
@property (nonatomic, retain) UIImageView *ZXImageView2;
@property (nonatomic, retain) UIImageView *ZXImageView3;
@property (nonatomic, retain) UIImageView *ZXImageView4;
@property (nonatomic, retain) UIImageView *ZXImageView5;
@property (nonatomic, retain) UIImageView *ZXImageView6;
@property (nonatomic, retain) UILabel *ZXLable1;
@property (nonatomic, retain) UILabel *ZXLable2;
@property (nonatomic, retain) UILabel *ZXLable3;
@property (nonatomic, retain) UILabel *ZXLable4;
@property (nonatomic, retain) UILabel *ZXLable5;
@property (nonatomic, retain) UILabel *ZXLable6;
@property (nonatomic, retain) UIImageView *DTImageView1;
@property (nonatomic, retain) UIImageView *DTImageView2;
@property (nonatomic, retain) UIImageView *DTImageView3;
@property (nonatomic, retain) UIImageView *DTImageView4;
@property (nonatomic, retain) UIImageView *DTImageView5;
@property (nonatomic, retain) UIImageView *DTImageView6;
@property (nonatomic, retain) UILabel *DTLable1;
@property (nonatomic, retain) UILabel *DTLable2;
@property (nonatomic, retain) UILabel *DTLable3;
@property (nonatomic, retain) UILabel *DTLable4;
@property (nonatomic, retain) UILabel *DTLable5;
@property (nonatomic, retain) UILabel *DTLable6;
@property (nonatomic, retain) UIImageView *YYImageView1;
@property (nonatomic, retain) UIImageView *YYImageView2;
@property (nonatomic, retain) UIImageView *YYImageView3;
@property (nonatomic, retain) UIImageView *YYImageView4;
@property (nonatomic, retain) UIImageView *YYImageView5;
@property (nonatomic, retain) UIImageView *YYImageView6;
@property (nonatomic, retain) UILabel *YYLable1;
@property (nonatomic, retain) UILabel *YYLable2;
@property (nonatomic, retain) UILabel *YYLable3;
@property (nonatomic, retain) UILabel *YYLable4;
@property (nonatomic, retain) UILabel *YYLable5;
@property (nonatomic, retain) UILabel *YYLable6;
@property (nonatomic, retain) UIImageView *QGImageView1;
@property (nonatomic, retain) UIImageView *QGImageView2;
@property (nonatomic, retain) UIImageView *QGImageView3;
@property (nonatomic, retain) UIImageView *QGImageView4;
@property (nonatomic, retain) UIImageView *QGImageView5;
@property (nonatomic, retain) UIImageView *QGImageView6;
@property (nonatomic, retain) UILabel *QGLable1;
@property (nonatomic, retain) UILabel *QGLable2;
@property (nonatomic, retain) UILabel *QGLable3;
@property (nonatomic, retain) UILabel *QGLable4;
@property (nonatomic, retain) UILabel *QGLable5;
@property (nonatomic, retain) UILabel *QGLable6;
// 创建四个数组属性 用来存放分类推荐申请下来的图片对象
@property (nonatomic, retain) NSMutableArray *ZXImageArray;
@property (nonatomic, retain) NSMutableArray *DTImageArray;
@property (nonatomic, retain) NSMutableArray *YYImageArray;
@property (nonatomic, retain) NSMutableArray *QGImageArray;
@property (nonatomic, retain) UIView * rotateView;
@property (nonatomic, assign) NSInteger type; // 用来判断推荐中的imageview的状态, 0表示停止状态, 1表示播放状态 通过tap切换
//@property (nonatomic, retain) AudioStreamer *streamer; // 播放器
@property (nonatomic, copy) NSString *playUrl;

- (instancetype)initWithFrame:(CGRect)frame;

@end
